<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .head {
            text-align: center;
        }
        #content {
            text-align: right;
        }
    </style>
</head>
<body>
    <div class="box">
        <table>
            <thead class="head">
                <tr>
                    <td>代码</td>
                    <td>名称</td>
                    <td>最新公布净值</td>
                    <td>累积净值</td>
                    <td>前单位净值</td>
                    <td>净值增长率</td>
                    <td>前单公布日期</td>
                </tr>
            </thead>
            <tbody id="content">
                <tr>
                    <td>003526</td>
                    <td>广发理财30天债券B</td>
                    <td>1075</td>
                    <td>1079</td>
                    <td>1074</td>
                    <td>+0.047</td>
                    <td>2019-01-11</td>
                </tr>
                <tr>
                    <td>003526</td>
                    <td>广发理财30天债券B</td>
                    <td>1075</td>
                    <td>1079</td>
                    <td>1074</td>
                    <td>+0.047</td>
                    <td>2019-01-11</td>
                </tr>
                <tr>
                    <td>003526</td>
                    <td>广发理财30天债券B</td>
                    <td>1075</td>
                    <td>1079</td>
                    <td>1074</td>
                    <td>+0.047</td>
                    <td>2019-01-11</td>
                </tr>
            </tbody>
        </table>
    </div>

    <script>
        var rows = document.getElementById('content').querySelectorAll('tr');
        for(var i = 0; i < rows.length; i++) {
            var row = rows[i];
            row.onmouseover = function() {
                this.style.backgroundColor = 'pink';
            }

            row.onmouseout = function () {
                this.style.background = 'white';
            }
            
        }
    </script>
</body>
</html>